package com.ruoyi.spider.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * 程序页面的配置类
 * @author xgt(小光头)
 * @version 1.0
 * @date 2021-1-16 12:01
 */
@Data
public class ProcessorConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /** 爬虫配置ID */
    private Long id;
    /** 爬虫编码 */
    @Excel(name = "爬虫编码")
    private String spiderCode;
    /** 爬虫名称 */
    @Excel(name = "爬虫名称")
    private String spiderName;

    /** 入口地址 */
    private String entryUrls;

    /** 目标URL正则 */
    private String targetRegex;
    /** 字符集 */
    @Excel(name = "字符集")
    private String charset = "utf8";
    /** 睡眠时间(ms) */
    @Excel(name = "睡眠时间(ms)")
    private Long sleepTime= 1000L;

    /** 重试次数 */
    @Excel(name = "重试次数")
    private Integer retryTimes = 2;

    /** 线程数量 */
    @Excel(name = "线程数量")
    private Long threadCount = 1L;

}
